package com.yida.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yida.service.serverblog;
import com.yida.service.serverphoto;

@Controller
public class phototype {
	
	@Autowired
	public serverphoto service;
	
	@RequestMapping("phototype")
	public String photo(Model mode) {
	List<com.yida.bean.phototype> phototypes = service.phototype();	
    mode.addAttribute("phototypes", phototypes);
    
      return  "phototype";
	}

}
